class Nod{
  struct nod
        {
                int cheie;
                char info[10];
                struct nod *ant,*urm;
        };
    typedef struct nod Tnod;
    typedef Tnod *ref;

    int k;
    char c;
    ref p;
    ref q,r,s,x;
        friend class Liste;
        public:
                Nod();
          void insd_Cs();
                void listare();
};

class Liste{

  struct nod
        {
                int cheie;
                char info[10];
                struct nod *ant,*urm;
        };
    typedef struct nod Tnod;
    typedef Tnod *ref;

    int k;
    char c;
    ref p;
    ref q,r,s,x;
        friend class Nod;
   public:
    Liste();
                void listare();
                void insd_P();
    void insd_Cs();
    bool operator ==(Liste&);
    bool operator !=(Liste&);
                Liste operator +(Nod&);
};

